﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InformationLog.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.information.InformationLog" %>

<%@ Register assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.DynamicData" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>通讯日志</title>
<script type="text/javascript" src="/lib/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("#mainContainer").css("height", document.documentElement.clientHeight);
});

function doResize() {
    $("#mainContainer").css("height", document.documentElement.clientHeight);
}
</script>

<style type="text/css">
.calendarStart
{
	position: absolute;      
	width: 150px;      
	padding: 5px;      
	background-color: White;      
	border: 1px solid #858585;      
	z-index: 1000;
        top: 35px;
        left: 253px;
        height: 150px;
}
.calendarEnd
{
	position: absolute;      
	width: 150px;      
	padding: 5px;      
	background-color: White;      
	border: 1px solid #858585;      
	z-index: 1000;
        top: 35px;
        left: 442px;
        height: 150px;
}
</style>

    <style type="text/css">
        #form1
        {
            width: 797px;
            height: 446px;
        }
    </style>
</head>
<body onresize="doResize()">
    <form id="form1" runat="server" style="width: 100%">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
    <div id="mainContainer" style="width: 100%;overflow:auto;">
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
        <table style="font-size: small" width="100%">
            <tr>
                <td class="style1">
                <div style="vertical-align: bottom; height: 19px;">                

                    <asp:Label ID="Label1" runat="server" Text="通讯类型: "></asp:Label>
                    <asp:DropDownList ID="DropDownList1" runat="server" Width="99px">
                        <asp:ListItem>短信通知</asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:Label ID="L0" runat="server" Height="10px" Width="16px"></asp:Label>
                    <asp:Label ID="Label2" runat="server" Text="开始时间:"></asp:Label>
                    <asp:TextBox ID="txtDateStart" runat="server" Width="93px" ReadOnly="True" />                          
                    <asp:ImageButton ID="imgBtnDateStart" runat="server" ImageUrl="~/css/images/calendar/grid.png"
                                                    AlternateText="calendar" 
                        OnClick="imgBtnDateStart_Click" CausesValidation="false" />
                        &nbsp;
                    <asp:Label ID="Label3" runat="server" Text="结束时间:"></asp:Label>
                    <asp:TextBox ID="txtDateEnd" runat="server" Width="93px" ReadOnly="True" />
                    <asp:ImageButton ID="imgBtnDateEnd" runat="server" AlternateText="calendar" 
                        CausesValidation="false" ImageUrl="~/css/images/calendar/grid.png" 
                        OnClick="imgBtnDateEnd_Click" />
                        &nbsp;
                        <asp:LinkButton ID="lbtnSelect" runat="Server" Text="查 找" 
                        onclick="lbtnSelect_Click" />
                        &nbsp;
                        <asp:LinkButton ID="lbtnALL" runat="Server" Text="全 部" 
                        onclick="lbtnALL_Click" />
                        
                   <div id="divCalendarStart" class="calendarStart" visible="False" runat="server">
                        <asp:Calendar ID="calendarDateStart" runat="server" 
                            OnSelectionChanged="calendarDateStart_SelectionChanged" 
                            BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" 
                            DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                            ForeColor="#663399" Height="99%" ShowGridLines="True" Width="99%" >
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                        </asp:Calendar>
</div>

                    <div id="divCalendarEnd" class="calendarEnd" visible="False" runat="server">
                        <asp:Calendar ID="calendarDateEnd" runat="server" 
                            OnSelectionChanged="calendarDateEnd_SelectionChanged" 
                            BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" 
                            DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                            ForeColor="#663399" Height="99%" ShowGridLines="True" Width="99%" >
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                        </asp:Calendar>
                    </div>
                </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div style="width: 98%">
                        <asp:GridView ID="GridViewSmsLog" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
                            BorderStyle="None" BorderWidth="1px" CellPadding="1" CellSpacing="1" 
                            Font-Size="Small" onpageindexchanging="GridViewSmsLog_PageIndexChanging" 
                            Width="100%">
                            <PagerSettings Mode="NumericFirstLast" PageButtonCount="5" />
                            <RowStyle ForeColor="#000066" />
                            <Columns>
                                <asp:BoundField DataField="RdyID" HeaderText="编号" SortExpression="RdyID">
                                <HeaderStyle Width="55px" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="RdyMtnumber" HeaderText="手机号" 
                                    SortExpression="RdyMtnumber">
                                <HeaderStyle Width="85px" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="RdySendTime" HeaderText="发送时间" 
                                    SortExpression="RdySendTime">
                                <HeaderStyle Width="130px" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="内容文本" SortExpression="RdyTextContent">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RdyTextContent") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="txtGVSmsContent" runat="server" Font-Size="Small" 
                                            Height="21px" ReadOnly="True" Text='<%# Eval("RdyTextContent") %>' 
                                            Width="99.5%"></asp:TextBox>
                                    </ItemTemplate>
                                    <ControlStyle ForeColor="Gray" Width="99.3%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="状 态" SortExpression="RdySendFlag">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("RdySendFlag") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" 
                                            Text='<%# ((Eval("RdySendFlag").ToString()=="0")?"失败":"成功") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Backup1" HeaderText="备 注" SortExpression="Backup1" 
                                    Visible="False">
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td>

                </td>
            </tr>
        </table>
        </ContentTemplate>
</asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
